<?php

namespace Core\Common\Base;

/**
 * Description of Middleware
 *
 * @author baiyang <baiyang@ibantang.com>
 */
interface Middleware
{
    /**
     * 执行中间件
     */
    public static function run(): bool;

    public static function error(): string;

    public static function errorCode(): int;
}
